<?php /* @var $target_user \App\Http\Models\User */ ?>
@if(\Auth::user()->id != $target_user->id)
<div>
    @if(\Auth::user()->hasStar($target_user->id))
        <button class="btn like-button" like-value="1" like-user="{{ $target_user->id }}" type="button">取消关注</button>
    @else
        <button class="btn btn-success like-button" like-value="0" like-user="{{ $target_user->id }}" type="button">关注</button>
    @endif
</div>
@endif